package cc.cix.gt.org.controller;

import cc.cix.gt.common.entity.ResultPage;
import cc.cix.gt.org.dto.query.QueryDataPermissionTestReq;
import cc.cix.gt.org.entity.DataPermissionTest;
import cc.cix.gt.org.service.IDataPermissionTestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Controller
 *
 * @author cix
 * @date 2020-04-14 15:25:33
 */
@Slf4j
@RestController
@Api(tags = "数据权限管理")
@RequestMapping("/api/dataPermissionTest")
@RequiredArgsConstructor
public class DataPermissionTestController {

    private final IDataPermissionTestService dataPermissionTestService;

    @ApiOperation("数据权限列表")
    @GetMapping
    public ResultPage<DataPermissionTest> dataPermissionTestList(QueryDataPermissionTestReq dto) {
        return dataPermissionTestService.listDataPermissionTest(dto);
    }

}
